deleteStat

  • function
 

Delete a stat from the database.

viewmodel.deleteStat(stat, event)

Delete a stat from the database.

Parameters

  1. stat {Stat}

    The Stat to delete.

  2. event {event}

    The event that triggered the deletion.

Use in a template like:

<span class="destroy-btn glyphicon glyphicon-trash" ($click)="deleteStat(., %event)"></span>